package com.ctshk.rpc.air.dto.app;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalTime;

/**
 * @BelongsProject: ctshk-cloud
 * @BelongsPackage: com.ctshk.rpc.air.dto.app
 * @Author: hef
 * @CreateTime: 2021-05-19 17:37
 * @Description: 描述
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class AirProductListDTO implements Serializable {

    @ApiModelProperty(value = "产品Id")
    private Long productId;

    @ApiModelProperty(value = "航班id")
    private Long flightId;

    @ApiModelProperty(value = "航空公司名称")
    private String companyName;

    @ApiModelProperty(value = "航空公司Id")
    private Long companyId;

    @ApiModelProperty(value = "航班号")
    private String flightNumber;

    @ApiModelProperty(value = "出发城市id")
    private Long depCityId;

    @ApiModelProperty(value = "出发城市名称")
    private String depCityName;

    @ApiModelProperty(value = "到达城市id")
    private Long arrCityId;

    @ApiModelProperty(value = "到达城市名称")
    private String arrCityName;

    @ApiModelProperty(value = "起飞机场id")
    private Long depAirportId;

    @ApiModelProperty(value = "起飞机场名称")
    private String depAirportName;

    @ApiModelProperty(value = "到达机场id")
    private Long arrAirportId;

    @ApiModelProperty(value = "到达机场名称")
    private String arrAirportName;

    @JsonFormat(pattern = "HH:mm")
    @ApiModelProperty(value = "起飞时间")
    private LocalTime depTime;

    @JsonFormat(pattern = "HH:mm")
    @ApiModelProperty(value = "到达时间")
    private LocalTime arrTime;

    @ApiModelProperty(value = "机型")
    private Long airplaneType;

    @ApiModelProperty(value = "机型名稱")
    private String airplaneName;

    @ApiModelProperty(value = "舱位等级類型id(主数据获取)")
    private Long cabinClass;

    @ApiModelProperty(value = "舱位等级類型名称)")
    private String cabinName;

    @ApiModelProperty(value = "是否直达 1直达 2中转")
    private Integer onWay;

    @ApiModelProperty(value = "最低價")
    private BigDecimal lowPrice;
}
